package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 信用分变更历史对象 credit_score_history
 * 
 * @author ruoyi
 * @date 2024-01-26
 */
public class CreditScoreHistory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 用户名称 */
    @Excel(name = "用户名称")
    private String userName;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String phonenumber;

    /** 原信用分 */
    @Excel(name = "原信用分")
    private Integer oldScore;

    /** 新信用分 */
    @Excel(name = "新信用分")
    private Integer newScore;

    /** 变更分数 */
    @Excel(name = "变更分数")
    private Integer changeAmount;

    /** 变更原因 */
    @Excel(name = "变更原因")
    private String reason;

    /** 操作人 */
    @Excel(name = "操作人")
    private String operator;

    /** 变更类型 */
    @Excel(name = "变更类型")
    private String changeType;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setPhonenumber(String phonenumber) 
    {
        this.phonenumber = phonenumber;
    }

    public String getPhonenumber() 
    {
        return phonenumber;
    }
    public void setOldScore(Integer oldScore) 
    {
        this.oldScore = oldScore;
    }

    public Integer getOldScore() 
    {
        return oldScore;
    }
    public void setNewScore(Integer newScore) 
    {
        this.newScore = newScore;
    }

    public Integer getNewScore() 
    {
        return newScore;
    }
    public void setChangeAmount(Integer changeAmount) 
    {
        this.changeAmount = changeAmount;
    }

    public Integer getChangeAmount() 
    {
        return changeAmount;
    }
    public void setReason(String reason) 
    {
        this.reason = reason;
    }

    public String getReason() 
    {
        return reason;
    }
    public void setOperator(String operator) 
    {
        this.operator = operator;
    }

    public String getOperator() 
    {
        return operator;
    }
    public void setChangeType(String changeType) 
    {
        this.changeType = changeType;
    }

    public String getChangeType() 
    {
        return changeType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("phonenumber", getPhonenumber())
            .append("oldScore", getOldScore())
            .append("newScore", getNewScore())
            .append("changeAmount", getChangeAmount())
            .append("reason", getReason())
            .append("operator", getOperator())
            .append("changeType", getChangeType())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
} 